﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Yunzuan.Foundation.Web
{
    public static class GlobalConfig
    {
        public static string BaseURL = ConfigurationManager.AppSettings["TransmissionBaseURL"]; //数据仓库库存传输使用URL
        public static string tttagKey = ConfigurationManager.AppSettings["tttagKey"];
        //public static string CheckGemsBaseURL = ConfigurationManager.AppSettings["TransmissionCheckGemsBaseURL"]; //查宝网传输使用URL 11-5

        /// <summary>
        /// 数据仓库批量修改退点使用URL
        /// </summary>

        /// <summary>
        /// 供应商URL
        /// </summary>
        public static string SuppliersUrl = BaseURL + ConfigurationManager.AppSettings["DataCenter.SuppliersUrl"];


        public static string ParcelsUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionParcelsURL"];//统包货的搜索 11-7

        public static string TransmissionUpStockURL = BaseURL + ConfigurationManager.AppSettings["TransmissionUpStockURL"]; // 编辑 ,(删除 ,上传，新增,也用这个)现货库存URL

        public static string TransmissionUpBatchUrl = TransmissionUpStockURL + ConfigurationManager.AppSettings["TransmissionUpBatchUrl"];  //stocks/prices/

        public static string TransmissionBatchUpStockURL = BaseURL + ConfigurationManager.AppSettings["TransmissionBatchUpStockURL"];//批量调整裸钻 PUT

        public static string AccessKey = ConfigurationManager.AppSettings["TransmissionAccessKey"]; //仓库签名用的key

        public static string AccessSecret = ConfigurationManager.AppSettings["TransmissionAccessSecret"];//仓库签名用的Secret

        public static int ExpirationTimeOut = int.Parse(ConfigurationManager.AppSettings["ExpirationTimeOut"]);//过期时间       

        /// 数据仓库库存传输使用URL
        /// </summary>
        public static string IUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionInventoryURL"];

        /// <summary>
        /// 数据仓库订单传输使用URL
        /// </summary>
        public static string OUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionOrderURL"];

        /// <summary>
        /// 图片上传
        /// </summary>
        public static string TransmissionImageUploadUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionImageUploadUrl"];

        /// <summary>
        /// 视频上传
        /// </summary>
        public static string TransmissionVideoUploadUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionVideoUploadUrl"];
        /// <summary>
        /// 上下架地址
        /// </summary>
        public static string OnShelvesOrOffShelvesUrl = BaseURL + ConfigurationManager.AppSettings["OnShelvesOrOffShelvesUrl"];

        /// <summary>
        /// 供应商供应商列表(全称，简称)查看
        /// </summary>
        public static string TransmissionSuppliersUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionSuppliersUrl"];

        public static string TransmissionSuppliersBlackListUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionSuppliersBlackListUrl"];

        /// <summary>
        /// 供应商供应商列表设置多个供应商
        /// </summary>
        public static string TransmissionSuppliersSetUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionSuppliersSetUrl"];

        /// <summary>
        /// 供应商供应商列表设置（{0},替换为空即可）单个供应商
        /// </summary>
        public static string TransmissionSupplierSetUrl = TransmissionSuppliersSetUrl + ConfigurationManager.AppSettings["TransmissionSupplierSetUrl"];  //单个url为:baseUrl+多个URL+自己url

        public static string TransmissionSupplierWhiteSetUrl = TransmissionSuppliersSetUrl + ConfigurationManager.AppSettings["TransmissionSupplierWhiteSetUrl"];  //单个url为:baseUrl+多个URL+自己url

        ///<summary>
        ///成品列表搜索
        ///</summary>
        public static string TransmissionInlaysSearchUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionInlaysSearchUrl"];

        /// <summary>
        ///成品 POST/PUT/GET/DELETE
        /// </summary>
        public static string TransmissionInlaysOprateUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionInlaysOprateUrl"];

        //成品导入
        public static string TransmissionInlaysImportUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionInlaysImportUrl"];
        ///<summary>
        ///空托列表搜索
        ///</summary>
        public static string TransmissionInlaySettingsSearchUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionInlaySettingsSearchUrl"];
        /// <summary>
        ///空托 POST/PUT/GET/DELETE
        /// </summary>
        public static string TransmissionInlaySettingsOprateUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionInlaySettingsOprateUrl"];

        //空托导入
        public static string TransmissionInlaySettingsImportUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionInlaySettingsImportUrl"];

        /// <summary>
        /// 彩宝操作POST/PUT/GET/DELETE
        /// </summary>
        public static string TransmissionGemOprateUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionGemOprateUrl"];
        /// <summary>
        /// 彩宝filter
        /// </summary>
        public static string TransmissionGemSearchUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionGemSearchUrl"];
        /// <summary>
        /// 彩宝上传
        /// </summary>
        public static string TransmissionGemsImportUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionGemsImportUrl"];

        /// <summary>
        /// 翡翠操作POST/PUT/GET/DELETE
        /// </summary>
        public static string TransmissionEmeraldOprateUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionEmeraldOprateUrl"];
        /// <summary>
        /// 翡翠filter
        /// </summary>
        public static string TransmissionEmeraldSearchUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionEmeraldSearchUrl"];
        /// <summary>
        /// 翡翠上传
        /// </summary>
        public static string TransmissionEmeraldsImportUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionEmeraldsImportUrl"];
        /// <summary>
        /// 素金操作POST/PUT/GET/DELETE
        /// </summary>
        public static string TransmissionPrimeGoldsOprateUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionPrimeGoldsOprateUrl"];
        /// <summary>
        /// 素金filter
        /// </summary>
        public static string TransmissionPrimeGoldsSearchUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionPrimeGoldsSearchUrl"];
        /// <summary>
        /// 素金上传
        /// </summary>
        public static string TransmissionPrimeGoldsImportUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionPrimeGoldsImportUrl"]; 
        /// <summary>
        /// 素金改价
        /// </summary>
        public static string TransmissionPrimeGoldsPrice = BaseURL + ConfigurationManager.AppSettings["TransmissionPrimeGoldsPrice"];
        ///<summary>
        ///统包货列表搜索
        ///</summary>
        public static string TransmissionParcelsSearchUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionParcelsSearchUrl"];//仓库签名用的Secret

        /// <summary>
        //////统包货 POST/PUT/GET/DELETE
        /// </summary>
        public static string TransmissionParcelOprateUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionParcelOprateUrl"];//仓库签名用的Secret
                                                                                                                                     /// <summary>
                                                                                                                                     /// 统包上传
                                                                                                                                     /// </summary>
        public static string TransmissionParcelsImportUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionParcelsImportUrl"];//仓库签名用的Secret

        /// <summary>
        /// 成品空托POST/PUT/GET/DELETE
        /// </summary>
        public static string TransmissionGraffOprateUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionGraffOprateUrl"];
        /// <summary>
        /// 成品空托POST/PUT/GET/DELETE
        /// </summary>
        public static string TransmissionGraffSearchUrl = BaseURL + ConfigurationManager.AppSettings["TransmissionGraffSearchUrl"];


        //得到数据中心导出的地址
        public static string GetExportUrl = BaseURL + ConfigurationManager.AppSettings["GetExportUrl"];//导出stocks/archives/    

        //短信相关
        /// <summary>
        /// api url
        /// </summary>
        public static string SMSurl = ConfigurationManager.AppSettings["SMSurl"];
        /// <summary>
        /// appkey
        /// </summary>
        public static string SMSappkey = ConfigurationManager.AppSettings["SMSappkey"];
        /// <summary>
        /// secret
        /// </summary>
        public static string SMSsecret = ConfigurationManager.AppSettings["SMSsecret"];



        /// <summary>
        ///注册验证码模板  
        /// </summary>
        public static string SMSTemplateByReg = ConfigurationManager.AppSettings["SMSTemplateByReg"];
        /// <summary>
        ///注册验证码模板内容 ${code}，${min}
        /// </summary>
        public static string SMSTemplateByRegContent = ConfigurationManager.AppSettings["SMSTemplateByRegContent"];
        /// <summary>
        /// 取货提醒模板
        /// </summary>
       // public static string SMSTemplateByGet = ConfigurationManager.AppSettings["SMSTemplateByGet"];
        /// <summary>
        /// 取货提醒模板内容${customer}
        /// </summary>
       // public static string SMSTemplateByGetContent = ConfigurationManager.AppSettings["SMSTemplateByGetContent"];
        /// <summary>
        /// 到货提醒模板
        /// </summary>
      //  public static string SMSTemplateByArrived = ConfigurationManager.AppSettings["SMSTemplateByArrived"];
        /// <summary>
        /// 到货提醒模板内容${salesname}
        /// </summary>
       // public static string SMSTemplateByArrivedContent = ConfigurationManager.AppSettings["SMSTemplateByArrivedContent"];
        /// <summary>
        /// 下单提醒模板
        /// </summary>
        public static string SMSTemplateByOrders = ConfigurationManager.AppSettings["SMSTemplateByOrders"];
        /// <summary>
        /// 下单提醒模板内容${salesname}您好，${customer}于${time}下单成功：货号为${sn}
        /// </summary>
        public static string SMSTemplateByOrdersContent = ConfigurationManager.AppSettings["SMSTemplateByOrdersContent"];

        /// <summary>
        /// 已注册提醒模板
        /// </summary>
        public static string SMSTemplateByHasReg = ConfigurationManager.AppSettings["SMSTemplateByHasReg"];
        /// <summary>
        /// 已注册提醒模板内容${adminname}${name}            //${adminname}您好，${name}已申请注册成功，请尽快审核
        /// </summary>
        public static string SMSTemplateByHasRegContent = ConfigurationManager.AppSettings["SMSTemplateByHasRegContent"];


        /// <summary>
        /// 采购成功提醒模版
        /// </summary>
        // public static string SMSTemplateByPurchase = ConfigurationManager.AppSettings["SMSTemplateByPurchase"];
        /// <summary>
        /// 采购成功提醒模版${customername}            //${customername}您好， ${customername}您好，您有订单采购成功，请及时到系统查看。
        /// </summary>
        //public static string SMSTemplateByPurchaseContent = ConfigurationManager.AppSettings["SMSTemplateByPurchaseContent"];

        /// <summary>
        /// 注册后审核成功提醒模版
        /// </summary>
        public static string SMSTemplateByReview = ConfigurationManager.AppSettings["SMSTemplateByReview"];//客户主动注册后提醒到管理员 8-30


        /// <summary>
        /// 注册后审核成功提醒模版${customername}            //${customername}您好，，您的注册申请已审核通过，感谢您注册
        /// </summary>
        public static string SMSTemplateByReviewContent = ConfigurationManager.AppSettings["SMSTemplateByReviewContent"];//客户主动注册后提醒到管理员 8-30


        /// <summary>
        /// 到货，取货的发送间隔时间
        /// </summary>
        // public static int CacheExpirationBySecond = int.Parse(ConfigurationManager.AppSettings["CacheExpirationBySecond"]);

        /// <summary>
        /// 自己上传的货[得到默认标识即现在的默认供应商YD]
        /// </summary>
        public static string SelfStock = ConfigurationManager.AppSettings["DefaultProvider"];//现货供应商简称 11-26


        public static string TransmissionBatch = ConfigurationManager.AppSettings["TransmissionBatch"];//批量修改
        public static string TransmissionBatchDelete = ConfigurationManager.AppSettings["TransmissionBatchDelete"];//批量删除
        public static string TransmissionPrices = ConfigurationManager.AppSettings["TransmissionUpBatchUrl"];  //stocks/prices/



        public static string SetMarketRate = ConfigurationManager.AppSettings["SetMarketRate"]!=null? ConfigurationManager.AppSettings["SetMarketRate"]:"1.2";  //stocks/prices/

        //查询所有商品库存
        public static string GetAllProductsURL = BaseURL + ConfigurationManager.AppSettings["GetAllProductsURL"];
    }
}
